package cn.fx.org.domain;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.fx.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import java.util.Date;

@Data
public class Shop extends BaseDomain {

    @Excel(name="ID",width = 30)
    private Long id;

    @Excel(name="店铺名称",width = 30)
    private String name;

    @Excel(name="店铺电话",width = 30)
    private String tel;

    @Excel(name="注册日期",width = 30,exportFormat = "yyyy-MM-dd")
    @JsonFormat(pattern="yyyy-MM-dd", timezone="GMT+8")
    private Date registerTime = new Date();

    @Excel(name="店铺状态",width = 10)
    private Integer state = 1;

    @Excel(name="店铺地址",width = 50)
    private String address;

    @Excel(name="店铺logo",width = 30)
    private String logo;

    @Excel(name="店长ID",width = 60)
    private Long admin_id; //店长id  对应employee


    //对应上面的admin_id  店长员工对象
    @Excel(name="店长",width = 30)
    private Employee admin;

}
